/**
  ******************************************************************************
  * @file    APP_RELAY.h
  * @author  Feirui_Joe
  * @version V0.1
  * @date    07/26/2010
  * @brief   Outputs Driver
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 



/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef  __APP_RELAY_H__
#define  __APP_RELAY_H__


#ifdef __cplusplus
 extern "C" {
#endif


/**
  * @brief  INCLUDE FILES.
  */


/**
  * @brief GLOBALS RAM definition
  */
#ifdef   APP_GLOBALS_RELAY
#define  APP_EXT_RELAY
#else
#define  APP_EXT_RELAY  extern
#endif


/* StateUpdIn OS_Flags config bits */
#define OSRelayFlags_UpdRequest                     ((OS_FLAGS)DEF_BIT_00)
#define OSRelayFlags_UpdTiming                      ((OS_FLAGS)DEF_BIT_01)
#define OSRelayFlags_Reserve02                      ((OS_FLAGS)DEF_BIT_02)
#define OSRelayFlags_Reserve03                      ((OS_FLAGS)DEF_BIT_03)
#define OSRelayFlags_Reserve04                      ((OS_FLAGS)DEF_BIT_04)
#define OSRelayFlags_Reserve05                      ((OS_FLAGS)DEF_BIT_05)
#define OSRelayFlags_Reserve06                      ((OS_FLAGS)DEF_BIT_06)
#define OSRelayFlags_Reserve07                      ((OS_FLAGS)DEF_BIT_07)
#define OSRelayFlags_Reserve08                      ((OS_FLAGS)DEF_BIT_08)
#define OSRelayFlags_Reserve09                      ((OS_FLAGS)DEF_BIT_09)
#define OSRelayFlags_Reserve10                      ((OS_FLAGS)DEF_BIT_10)
#define OSRelayFlags_Reserve11                      ((OS_FLAGS)DEF_BIT_11)
#define OSRelayFlags_Reserve12                      ((OS_FLAGS)DEF_BIT_12)
#define OSRelayFlags_Reserve13                      ((OS_FLAGS)DEF_BIT_13)
#define OSRelayFlags_Reserve14                      ((OS_FLAGS)DEF_BIT_14)
#define OSRelayFlags_Reserve15                      ((OS_FLAGS)DEF_BIT_15)
#define OSRelayFlags_ALL                            (OSRelayFlags_UpdRequest|OSRelayFlags_UpdTiming)
#define OSRelayFlags_DefaultValue                   ((OS_FLAGS)    0x0000)



#define RelayOutTimingFreq            10      /* 10HZ */


APP_EXT_RELAY void PORGlobalRAMReset_RELAY(void);

#ifdef __cplusplus
}
#endif


#endif   /*  __APP_RELAY_H__  */

/******************* (C) COPYRIGHT 2010 Feirui *****END OF FILE****/